package com.vnaloha.common.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vnaloha.common.dao.CategoryDAO;
import com.vnaloha.common.model.Category;

@Service
public class CategoryServiceImpl implements CategoryService{

	@Autowired
	private CategoryDAO categoryDAO;
	
	@Override
	public List<Category> list() {
		return categoryDAO.list();
	}

	@Override
	public Category get(int id) {
		// TODO Auto-generated method stub
		return categoryDAO.get(id);
	}

}
